package br.com.sg5.model.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.stereotype.Service;


import br.com.sg5.model.bean.Empresa;
import br.com.sg5.model.dao.EmpresaDao;
import br.com.sg5.model.dao.impl.HibernateDAO;
import br.com.sg5.model.service.EmpresaService;

@Service
@RemotingDestination(value="empresaService")
public class EmpresaServiceImpl implements EmpresaService {

	@Autowired
	private EmpresaDao EmpresaDao;
	
	@Override
	public List<Empresa> getEmpresa()
	{

		return EmpresaDao.getEmpresa();
	}
	@Override
	public List<Empresa> getEmp()
	{

		return EmpresaDao.getEmp();
	}
	@Override
	public boolean salvar(){
		
		return EmpresaDao.salvar();
	}
	
	
}
